package org.carpediem.conman.dao;

import org.carpediem.conman.entity.Contact;
import org.carpediem.conman.entity.Document;
import org.carpediem.schema.conman.ContactInfo;

import java.util.List;

/**
 * @author Mark Petrovic
 */
abstract public class DocumentDao extends AbstractDao {
    abstract public Document get(long documentId);

    abstract public List<Document> getAllDocuments();

    abstract public List<Document> getByOwner(Contact contact);

    abstract public Document add(Contact contact, ContactInfo cInfo, byte[] document);
}
